package com.sophialex.health.record.views.visits;

import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.swt.widgets.Button;

import com.sophialex.health.common.platform.SuperContext;
import com.sophialex.health.record.common.bind.ListPathCheckBinder;
import com.sophialex.health.record.common.utils.CommonUtils;
import com.sophialex.health.record.ui.visits.DiabetesVisitsUI;

public class DiabetesVisitsView extends DiabetesVisitsUI   implements IPropertyChangeListener{
	public static final String ID = "com.sophialex.health.record.views.visits.DiabetesVisitsView"; 
	public DiabetesVisitsView(){
		initCombo();
		initCheckBox();
	}
	private void initCheckBox() {
		
		//症状
		new ListPathCheckBinder().bindCheckBitByBit(new Button[] { chkTT, chkTY, chkXJ, chkXM, chkXT, chkKS, chkHT, chkHXKN,
				chkDY, chkDN, chkTZXJ, chkFL, chkGJZT, chkSLMH, chkSZMM, chkXS, chkNT, chkBM, chkFX, chkEXOT, chkYH, chkEM, chkFR, chkBN, chkFZ, chkDS, chkPZ, chkQT}, gly, "symptom.value", null, true);
		
		//现存主要问题
		new ListPathCheckBinder().bindCheckBitByBit(new Button[] { chkQXNZZ, chkNCX, chkZWMXCX, chkDZXNQX, chkQTNXGJB, chkTNBSB, chkSGNSJ, chkJXSY,
				chkMXSY, chkQTSZJB, chkXJGS, chkXJT, chkGZDMXYCJ, chkCXXXLSJ, chkXQQTT, chkQTXZJB, chkJCDML, chkDMBSJB, chkQTXGJB, chkSJXTJB, chkQTXTJB}, gly, "issue.value", null, true);
		
		//本次随访医生建议
		new ListPathCheckBinder().bindCheckBitByBit(new Button[] { chkYWZL, chkKZGRLYS, chkJSXYLHJY, chkJJiu, chkJQTZ, chkJSSSZF, chkFSQX, chkZZZL,
				chkYGLTYYD, chkYSJYQT}, gly, "advice.value", null, true);
	}
	private void initCombo() {
		CommonUtils.initCombo(this.comboSFFS, "SF_SFFS");//随访方式
		
		//药物降糖
		CommonUtils.initCombo(this.comboMCYL1, "SF_MCYL");
		CommonUtils.initCombo(this.comboMCYL2, "SF_MCYL");
		CommonUtils.initCombo(this.comboMCYL3, "SF_MCYL");
		CommonUtils.initCombo(this.comboMCYL4, "SF_MCYL");
		CommonUtils.initCombo(this.comboFYQK, "SF_FYQK");
		CommonUtils.initCombo(this.comboBLFY, "YOUWU");
		
		//控制情况
		CommonUtils.initCombo(this.comboKZQK, "SF_KZQK");
		
		//随访医生签名
		CommonUtils.initUserCombo(this.comboSFYSQM, SuperContext.getCurrentUser().getUserName(), true);
		
	}
	@Override
	protected void doAdd() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void doCancel() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void doDel() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void doEdit() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void doSave() {
		// TODO Auto-generated method stub

	}

	@Override
	public void propertyChange(PropertyChangeEvent event) {
		// TODO Auto-generated method stub
		
	}

}
